package cn.wolfcode.luowowo.service;


import cn.wolfcode.luowowo.domain.Destination;
import cn.wolfcode.luowowo.domain.Region;
import cn.wolfcode.luowowo.query.DestinationObjcet;
import cn.wolfcode.luowowo.query.RegionObjcet;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IDestinationService {
    Destination get(String id);

    List<Destination> list();

    List<Destination> getDestByRegionId(String rid);

    Page<Destination> query(DestinationObjcet qo);

    void saveOrUpdate(Destination destination);

    void delete(String id);
    void save(Destination destination);
    void update(Destination destination);

    List<Destination> getToasts(String parentId);

    List<Destination> search(String regionId);



}
